/**
 * 门店设置的菜单导航
 * @author: minzhang
 * @update: 2016-03-07
 */

import React, { PropTypes } from 'react';
import { Link } from 'dva/router';
import { Menu, Icon } from 'antd';

const SubMenu = Menu.SubMenu;
const MenuItemGroup = Menu.ItemGroup;
const Item = Menu.Item;

const StoreSettingMenu = ({
	current,
}) => {
	
	const config = {
		'/times-card': '/member-card',
	}
	
	current = config[current] || current;
	
  return (
		<Menu selectedKeys={[current]} mode="inline" style={{float: 'left', width: 140, border: 'none'}}>
			<Item key="/store-info"><Link to="/store-info"><Icon type="home" />门店信息</Link></Item>
			<Item key="/rooms-manage"><Link to="/rooms-manage"><Icon type="appstore-o" />包间管理</Link></Item>
			<Item key="/project-manage"><Link to="/project-manage"><Icon type="folder" />项目管理</Link></Item>
			<Item key="/product-manage"><Link to="/product-manage"><Icon type="coffee" />产品管理</Link></Item>
			<Item key="/recommend-manage"><Link to="/recommend-manage"><Icon type="coffee" />推荐提成管理</Link></Item>
			<Item key="/tech-manage"><Link to="/tech-manage"><Icon type="user" />技师管理</Link></Item>
			<Item key="/member-card"><Link to="/member-card"><Icon type="credit-card" />会员卡套餐</Link></Item>
			<Item key="/person-manage"><Link to="/person-manage"><Icon type="team" />员工管理</Link></Item>
			<Item key="/general-setting"><Link to="/general-setting"><Icon type="test" />通用设置</Link></Item>
		</Menu>
  );
};

StoreSettingMenu.propTypes = {
  current: PropTypes.string,
};

export default StoreSettingMenu;